},
_prepareDialog: function(forSecret, hold) {
- this._workSpinner = new Panel.AnimatedIcon('process-working.svg', WORK_SPINNER_ICON_SIZE);
+ let spinnerIcon = global.datadir + '/theme/process-working.svg';
+ this._workSpinner = new Panel.AnimatedIcon(spinnerIcon, WORK_SPINNER_ICON_SIZE);
this._workSpinner.actor.opacity = 0;
this._workSpinner.actor.show();
Name: 'AnimatedIcon',
Extends: Animation,
- _init: function(name, size) {
- this.parent(global.datadir + '/theme/' + name, size, size, ANIMATED_ICON_UPDATE_TIMEOUT);
+ _init: function(filename, size) {
+ this.parent(filename, size, size, ANIMATED_ICON_UPDATE_TIMEOUT);
}
});
this._stop = true;
- this._spinner = new AnimatedIcon('process-working.svg',
- PANEL_ICON_SIZE);
+ let spinnerIcon = global.datadir + '/theme/process-working.svg';
+ this._spinner = new AnimatedIcon(spinnerIcon, PANEL_ICON_SIZE);
this._container.add_actor(this._spinner.actor);
this._spinner.actor.hide();
this._spinner.actor.lower_bottom();
this._promptLoginHint.hide();
this.contentLayout.add_actor(this._promptLoginHint);
- this._workSpinner = new Panel.AnimatedIcon('process-working.svg', LoginDialog.WORK_SPINNER_ICON_SIZE);
+ let spinnerIcon = global.datadir + '/theme/process-working.svg';
+ this._workSpinner = new Panel.AnimatedIcon(spinnerIcon, LoginDialog.WORK_SPINNER_ICON_SIZE);
this._workSpinner.actor.opacity = 0;
this.allowCancel = false;